<h1>Editing movie</h1>

<% form_for(@movie) do |f| %>
    <%= f.error_messages %>

    <p>
        <%= f.label :title %><br/>
        <%= f.text_field :title %>
    </p>
    <p>
        <%= f.label :year %><br/>
        <%= f.text_field :year %>
    </p>
    <p>
        <%= f.label :language %><br/>
        <%= f.select :language, %w{ English Hindi } %>
    </p>
    <p>
        <%= f.label :rating %><br/>
        <%= f.text_field :rating %>
    </p>
    <p>
        <%= f.label :seen %><br/>
        <%= f.check_box :seen %>
    </p>
    <p>
        <%= f.submit "Update" %>
    </p>
<% end %>

<%= link_to 'Show', @movie %> |
<%= link_to 'Back', movies_path %>
